#include "widget.h"
#include "ui_widget.h"

Widget::Widget(QWidget *parent)
    : QWidget(parent)
    , ui(new Ui::Widget)
{
    ui->setupUi(this);

    QVBoxLayout* vlayout = new QVBoxLayout();
    QPushButton* button1 = new QPushButton("button1");
    QPushButton* button2 = new QPushButton("button2");
    QPushButton* button3 = new QPushButton("button3");
    vlayout->addWidget(button1);
    vlayout->addWidget(button2);
    vlayout->addWidget(button3);
    this->setLayout(vlayout);

    QHBoxLayout* hlayout = new QHBoxLayout();
    QPushButton* button4 = new QPushButton("Button4");
    QPushButton* button5 =new QPushButton("Button5");
    hlayout->addWidget(button4);
    hlayout->addWidget(button5);
    vlayout->addLayout(hlayout);
}

Widget::~Widget()
{
    delete ui;
}

